import request from '@/utils/request'

// 查询数据记录列表
export function listDataRecord(query) {
    return request({
        url: '/modules/dataRecord/list',
        method: 'get',
        params: query
    })
}

// 查询数据记录详细
export function getDataRecord(dataId) {
    return request({
        url: '/modules/dataRecord/' + dataId,
        method: 'get'
    })
}

// 新增数据记录
export function addDataRecord(data) {
    return request({
        url: '/modules/dataRecord',
        method: 'post',
        data: data
    })
}

// 修改数据记录
export function updateDataRecord(data) {
    return request({
        url: '/modules/dataRecord',
        method: 'put',
        data: data
    })
}

// 删除数据记录
export function delDataRecord(dataId) {
    return request({
        url: '/modules/dataRecord/' + dataId,
        method: 'delete'
    })
}

// 导出数据记录
export function exportDataRecord(query) {
    return request({
        url: '/modules/dataRecord/export',
        method: 'get',
        params: query
    })
}
